package Variable;
//本类用与测试各种类型变量的默认值
public class TestVariable {
    static String s;
    static int i;
    static byte b;
    static short s1;
    static long l;
    static double d;
    static float f;
    static boolean b1;
    static char c;

    public static void main(String[] args) {
        System.out.println(s);
        System.out.println(i);
        System.out.println(b);
        System.out.println(s1);
        System.out.println(l);
        System.out.println(d);
        System.out.println(b1);
        System.out.println(c);
        System.out.println(f);
        func();
        TestVariable t = new TestVariable();
        t.func2();
        func();

    }

    private  void func2() {
        b=21;
    }

    public static void func(){
        i = 1;
    }
}
